package org.i1510.joeone.service;
import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import org.i1510.common.bean.PageBean;
import org.i1510.common.utils.web.ResultMapper;
import org.i1510.joeone.po.JoeSubj2Class;
/**
 * @author Administrator  
 *
 */
public interface  IJoeSubj2ClassService {

    
    /**
    *@Author Rambo
    *@Desc：通过 主题 AND 品类 查找唯一的规划数
    *@param jsubjectId
    *@param jclassId
    *@return TODO
    *@Version  JoeSubj2ClassServiceImpl.java,v 1.1 2015年6月17日 下午4:43:00 
    */
    public JoeSubj2Class findBySubj2Class(String jsubjectId,String jclassId);
    /********************以下是标准接口*********************************************************/        
    /**
    *@Author Rambo
    *@Desc：存在即更新，否则为新增 根据主键来判断
    *@param joeSubj2Class
    *@param request
    *@return TODO
    *@Version  IJoeSubj2ClassService.java,v 1.1 2014-8-29 下午5:44:18 
    */
    public ResultMapper save(JoeSubj2Class joeSubj2Class,HttpServletRequest request);
    /**
    *@Author Rambo
    *@Desc：删除数据(尽量使用伪删除功能deleteX)
    *@param docId
    *@return TODO
    *@Version  IJoeSubj2ClassService.java,v 1.1 2014-8-29 下午2:55:37 
    */
    public ResultMapper delete(String docId);        
    /**
    *@Author Rambo
    *@Desc：根据ID查找
    *@param docId
    *@return TODO
    *@Version  IJoeSubj2ClassService.java,v 1.1 2014-8-29 下午2:57:26 
    */
    public JoeSubj2Class findById(String docId);
    /**
    *@Author Rambo
    *@Desc：根据批量ID查找
    *@param docIds
    *@return TODO
    *@Version  IJoeSubj2ClassService.java,v 1.1 2014-8-29 下午2:57:48 
    */
    public List<JoeSubj2Class> findByIds(List<String> docIds);
    /**
    *@Author Rambo
    *@Desc：joeSubj2Class分页处理
    *@param joeSubj2Class
    *@param pageBean
    *@return TODO
    *@Version  IJoeSubj2ClassService.java,v 1.1 2013-11-26 下午4:45:32 
    */
    public List getPage(JoeSubj2Class joeSubj2Class,PageBean pageBean,Map conditions);
    /**
    *@Author Rambo
    *@Desc：获取总页数
    *@param joeSubj2Class
    *@return TODO
    *@Version  IJoeSubj2ClassService.java,v 1.1 2013-11-26 下午5:27:54 
    */
    public int getPageCount(JoeSubj2Class joeSubj2Class,Map conditions);
    /********************以上是标准接口*********************************************************/    
    
}